import { Socket } from "socket.io"
import { RoomInfoType } from "../types/room_type"

class AppSocket {
  private _instance: Socket | null = null
  private _roomInfo: Array<RoomInfoType> = []

  constructor () {
    this._instance = new Socket()
  }

  sendMessage () {
    this._instance?.emit()
  }

  on () {
    this._instance?.on()
  }

  
}

export = AppSocket